home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-02
/
bpl70n11.zip
/
TESTPRGS.ZIP
/
INFBUG.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-03-07
|
849b
|
33 lines
PROGRAM INFBug; { Copyright (c) 1992 Norbert Juffa }
{ INFBug checks correct printing of NaNs. BP 7 originally prints these as INF }
{$N+,E+}
VAR X: EXTENDED;
XA: ARRAY [1..5] OF WORD ABSOLUTE X;
BEGIN
WriteLn ('Testing correct printing of NANs');
XA [5] := $7FFF;
XA [4] := $8000;
XA [3] := $0000;
XA [2] := $0000;
XA [1] := $0001;
WriteLn ('First NAN (7FFF 8000 0000 0000 0001) prints as: ', X);
XA [5] := $FFFF;
XA [4] := $8000;
XA [3] := $0000;
XA [2] := $8000;
XA [1] := $0000;
WriteLn ('Second NAN (FFFF 8000 0000 8000 0000) prints as: ', X);
XA [5] := $7FFF;
XA [4] := $8000;
XA [3] := $4000;
XA [2] := $0000;
XA [1] := $0000;
WriteLn ('Third NAN (7FFF 8000 4000 0000 0000) prints as: ', X);
END. { InfBg }
begin { INFBug }
end. { INFBug }